package com.yzc.controller;


import com.yzc.model.entity.analysis.serviceCondition;
import com.yzc.result.Result;
import com.yzc.service.LogAnalysisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;

@RestController
@RequestMapping("/logAnalysis")
public class LogAnalysisController {

    @Autowired
    private LogAnalysisService logAnalysisService;

    @GetMapping("/analyzeService")
    public Result<List<serviceCondition>> analyzeLogs() {
        return Result.success(logAnalysisService.analyzeService());
    }

}